package kpi.java_training.users;

/**
 * Plain class for  store user information
 */
public class User {
    private String login;
    private String password;
    private String id;

    public User(String login, String password) {
        this.login = login;
        this.password = password;
        this.id = "";
    }

    public User(String id, String login, String password) {
        this.login = login;
        this.password = password;
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getLogin() {
        return login;
    }

    public String getPassword() {
        return password;
    }

    public boolean isPasswordCorrect(String password) {
        return this.password.equals(password);
    }
}
